package com.candoit.webapps.pricing.model.opcional;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "opcional_stamping_mp")
public class StampingMP extends Opcional {

	@Column(name = "costo_rollo")
	private Double costoRollo;
	
	@Override
	public Double getCosto() {
		Double scrap = .1;
		Double rendimientoRollo = 720000.;//en centimetros cuadrados
		Double costo = (costoRollo/rendimientoRollo)/(1-scrap);
		return costo;
	}

	public Double getCostoRollo() {
		return costoRollo;
	}

	public void setCostoRollo(Double costoRollo) {
		this.costoRollo = costoRollo;
	}
	
}
